<?php
/*
 * @application shu_manage System
 * @author SkyWorld
 * @copyright SkyWorld
 * @version 1.0.0.0
 * Created on 2010-11-21
 */

 include './inc/common.inc.php';
 include (NCG_DLL.'page.class.php');

//cachePage();

$author = 'SkyWrold';
$currnet_page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$total = $db->num_rows($db->query('SELECT * FROM `user`'));
$fpage = new page($total,$currnet_page,1);
$pageInfo = $fpage->getPageInfo();

//$total = $db->num_rows($db->query('SELECT * FROM `user`'));
$sql = 'SELECT * FROM `user` ORDER by `id` LIMIT '.$pageInfo['row_offset'].', '.$pageInfo['row_num'];
$users = $db->get_all($sql);
include template('pagetest.html');

?>
